﻿using System;
using NguyenHoa.Web.App_Code;
using NguyenHoa.Services;

namespace NguyenHoa.Web.Pages
{
  public partial class ProductList : BasePage
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      if (!IsPostBack)
        LoadPage();
      if (IsCallback)
        LoadPage();
    }

    private void LoadPage()
    {
      dvProducts.DataSource = new ProductLocaleService().GetByCatLang(TypeId, CurrentLanguage.Id);
      dvProducts.DataBind();
    }

    protected void dvProducts_DataBound(object sender, EventArgs e)
    {

    }
  }
}
